import { getAction, deleteAction, putAction, postAction, downFilePost, downFile, uploadAction } from '@/api/manage'

//事件预警-案事件分级
const eventWarningLevel = params => getAction(`/alarmCenter/eventWarningLevel`, params)
//事件预警-案事件列表
const eventWarningList = params => getAction(`/alarmCenter/eventWarningList`, params)
//搜索告警事件
const searchEvents = params => postAction(`/alarmCenter/searchEvents`, params)
//搜索告警人员
const searchAlarm = params => postAction(`/alarmCenter/searchAlarm`, params)
//搜索物资
const searchMaterial = params => postAction(`/alarmCenter/searchMaterial`, params)
//搜索监控
const searchMonitor = params => postAction(`/alarmCenter/searchMonitor`, params)
//群防群治组织
const searchOrganization = params => postAction(`/alarmCenter/searchOrganization`, params)
//综治中心
const searchCenter = params => postAction(`/alarmCenter/searchCenter`, params)
//综治机构
const searchMechanism = params => postAction(`/alarmCenter/searchMechanism`, params)
//人员告警列表
const personnelAlarmList = params => getAction(`/personnel-alarm/personnelAlarmList`, params)
//人员告警处置
const personnelDispose = params => postAction(`/warning/warning-user/dispose_of_content_list`, params)
//告警中心-告警配置 分页
const configureList = params => getAction(`xl-alarm-configure/configureList`, params)
const warningUser = params => getAction(`xl-alarm-configure/warningUser`, params)
const addAlarmRule = params => postAction(`xl-alarm-configure/addAlarmRule`, params)
const updateAlarmRule = params => postAction(`xl-alarm-configure/updateAlarmRule`, params)
const deleteAlarmRule = params => getAction(`xl-alarm-configure/deleteAlarmRule/` + params)
const alarmDetails = params => getAction(`xl-alarm-configure/details/` + params)
const queryTrackInfo = params => getAction(`xl-personnel-track/queryTrackInfo/` + params)
const queryTrack = params => getAction(`xl-personnel-track/queryTrack`, params)
export {
  eventWarningLevel,
  eventWarningList,
  searchEvents,
  searchAlarm,
  searchMaterial,
  searchMonitor,
  personnelAlarmList,
  searchOrganization,
  searchCenter,
  searchMechanism,
  personnelDispose,
  configureList,
  warningUser,
  addAlarmRule,
  updateAlarmRule,
  deleteAlarmRule,
  alarmDetails,
  queryTrackInfo,
  queryTrack
}
